package com.platform.service.impl;

import com.platform.dao.MerchantInviteDao;
import com.platform.entity.MerchantInviteEntity;
import com.platform.service.MerchantInviteService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 商城配置:官网申请加盟
 *
 * @author liweihai
 * @email liweihai12345@sina.com
 * @date 2019-04-02 18:12:09
 */
@Service("merchantInviteService")
public class MerchantInviteServiceImpl implements MerchantInviteService {
    @Autowired
    private MerchantInviteDao merchantInviteDao;

    @Override
    public MerchantInviteEntity queryObject(Long id) {
        return merchantInviteDao.queryObject(id);
    }

    @Override
    public List<MerchantInviteEntity> queryList(Map<String, Object> map) {
        return merchantInviteDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return merchantInviteDao.queryTotal(map);
    }

    @Override
    public int save(MerchantInviteEntity merchantInvite) {
        return merchantInviteDao.save(merchantInvite);
    }

    @Override
    public int update(MerchantInviteEntity merchantInvite) {
        return merchantInviteDao.update(merchantInvite);
    }

    @Override
    public int delete(Long id) {
        return merchantInviteDao.delete(id);
    }

    @Override
    public int deleteBatch(Long[] ids) {
        return merchantInviteDao.deleteBatch(ids);
    }
}
